/**
 * Created by Zhang JiRen
 * @date 2022/7/8 0008
 */
import request from "@/utils/request";

const list = data => {
  return request({
    url: "/api/v1/threat/list",
    method: "get",
    data: data
  });
};
const detail = data => {
  return request({
    url: "/api/v1/threat/detail",
    method: "get",
    data: data
  });
};
const threat_assign = data => {
  return request({
    url: "/api/v1/threat/assign",
    method: "get",
    data: data
  });
};
const status = data => {
  return request({
    url: "/api/v1/threat/status",
    method: "get",
    data: data
  });
};
const comment = (data, params) => {
  return request({
    url: "/api/v1/threat/comment",
    method: "post",
    data: data,
    params: params
  });
};
const status_list = data => {
  return request({
    url: "/api/v1/threat/status/list",
    method: "get",
    data: data
  });
};
const total = data => {
  return request({
    url: "/api/v1/threat/total",
    method: "get",
    data: data
  });
};

export default {
  list,
  detail,
  threat_assign,
  status,
  comment,
  status_list,
  total
};
